package com.xb.loan.cashier.biz.task;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

public abstract class BaseTask implements Task, ApplicationContextAware {

	@Override
	public void run() {
		execute();
	}
	
	protected ApplicationContext ctx;
	@Override
	public void setApplicationContext(ApplicationContext ctx) throws BeansException {
	    this.ctx = ctx;
	}

}
